package com.tencent.wework;

public class FinanceTestDemo {

    public static void main(String[] args){

        long sdk = Finance.NewSdk();
        System.out.println(Finance.Init(sdk, "wwd08c8e7c775ab44d", "zJ6k0naVVQ--gt9PUSSEvs03zW_nlDVmjLCTOTAfrew"));
        long slice = Finance.NewSlice();
        long ret = Finance.GetChatData(sdk, 0, 10, "", "", 1000L, slice);
        if (ret != 0) {
            System.out.println("getchatdata ret " + ret);
            return;
        }
        System.out.println("getchatdata :" + Finance.GetContentFromSlice(slice));
        Finance.FreeSlice(slice);
        Finance.DestroySdk(sdk);
    }
}
